/**
 * 
 */
package com.ideeli.webextractor.domain;

/**
 * @author spaida
 *
 */
public class Eb 
{

	private int prodId;
	private float price;
	private int catId;
	private String catName;
	private String ebCode;
	
	public String getEbCode() {
		return ebCode;
	}
	public void setEbCode(String ebCode) {
		this.ebCode = ebCode;
	}
	public int getProdId() {
		return prodId;
	}
	public void setProdId(int prodId) {
		this.prodId = prodId;
	}
	public float getPrice() {
		return price;
	}
	public void setPrice(float price) {
		this.price = price;
	}
	public int getCatId() {
		return catId;
	}
	public void setCatId(int catId) {
		this.catId = catId;
	}
	public String getCatName()
	{
		return catName;
	}
	public void setCatName(String catName)
	{
		this.catName = catName;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + catId;
		result = prime * result + ((catName == null) ? 0 : catName.hashCode());
		result = prime * result
				+ ((ebCode == null) ? 0 : ebCode.hashCode());
		result = prime * result + Float.floatToIntBits(price);
		result = prime * result + prodId;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Eb other = (Eb) obj;
		if (catId != other.catId)
			return false;
		if (catName == null) {
			if (other.catName != null)
				return false;
		} else if (!catName.equals(other.catName))
			return false;
		if (ebCode == null) {
			if (other.ebCode != null)
				return false;
		} else if (!ebCode.equals(other.ebCode))
			return false;
		if (Float.floatToIntBits(price) != Float.floatToIntBits(other.price))
			return false;
		if (prodId != other.prodId)
			return false;
		return true;
	}
	

}
